import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Card
import androidx.compose.material3.CardDefaults
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import com.test.platform.model.PublishInfo

@Composable
fun PublishInfoItem(info: PublishInfo) {
    Card(
        modifier = Modifier
            .fillMaxWidth()
            .padding(8.dp),
        elevation = CardDefaults.cardElevation(4.dp)
    ) {
        Column(
            modifier = Modifier.padding(16.dp)
        ) {
            Text(text = "${info.owner}/${info.name}", style = MaterialTheme.typography.titleMedium)
            Text(text = "版本: ${info.version}")
            Text(text = "发布者: ${info.publisher}")
            Text(text = "状态: ${info.status}")
        }
    }
}